
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 合伙人缴纳服务保证金记录 */
const schema = MongooseFactory.Schema({
    merchantid: {
        type: Schema.Types.ObjectId,
        ref: "merchant"
    },
    customerid: {
        type: Schema.Types.ObjectId,
        ref: "customer_account"
    },
    bond:{
        type: String
    },
    paytype:{
        type: String
    },
    payorderid:{
        type: String
    },
    createuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifyuser: {
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifytime: {
        type: Date
    },
});



export const platform_agent_bondrecordModel = MongooseFactory.Model("platform_agent_bondrecord", schema);